<?php

namespace ms\models;

use Yii;

/**
 * This is the model class for table "{{%sell_week_select}}".
 *
 * @property integer $id
 * @property integer $supplier_goods_id
 * @property integer $base_id
 * @property integer $img_id
 * @property string $rom
 * @property string $zhishi
 * @property string $te_price
 * @property string $start_time
 * @property string $end_time
 * @property integer $store
 * @property integer $site_id
 */
class SellWeekSelect extends \common\components\ActiveRecord2015
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%sell_week_select}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['supplier_goods_id', 'base_id', 'img_id', 'te_price'], 'required'],
            [['supplier_goods_id', 'base_id', 'img_id', 'store', 'site_id'], 'integer'],
            [['te_price'], 'number'],
            [['rom'], 'string', 'max' => 40],
            [['zhishi'], 'string', 'max' => 80],
            [['start_time', 'end_time'], 'string', 'max' => 20]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => '序列号',
            'supplier_goods_id' => '供应商商品ID',
            'base_id' => '基础商品ID',
            'img_id' => '图片ID',
            'rom' => '机身内存',
            'zhishi' => '制式',
            'te_price' => '特价',
            'start_time' => '开始时间',
            'end_time' => '结束时间',
            'store' => '库存',
            'site_id' => '站点',
        ];
    }
}
